/**
 * 
 */
package com.maywide.jdp.system.utils;

import java.beans.PropertyEditorSupport;
import java.util.Map;

import com.google.gson.reflect.TypeToken;


/**
 * @author luoyang
 *
 */
public class JSONMapEditor extends PropertyEditorSupport {
	@Override
	public void setAsText(String text) throws IllegalArgumentException {
		setValue(JSONUtils.fromJson(text, new TypeToken<Map<String, String>>(){}));
	}

}
